<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title> 
	</head>
	<style>
		div{
			font-size: 18px;
		}
		span{
		}
	</style>
	<body>
		<div>A
			<span>B</span>
		</div>
		<script>
			class Human{
			    constructor(name){
			        this.name = name
			    }
			    run(){
			        console.log('走你')
			    }
			}
			class Man extends Human{
			    constructor(name){
			        super(name)
			        this.sex='男'
			    }
			    habit(){
			        console.log('喜欢女人')
			    }
			}
		</script>
	</body>
</html>
